package com.sistemagestion.BO;

import java.util.List;

import com.sistemagestion.DAO.RubroRepository;
import com.sistemagestion.Entities.Rubro;

public class RubroBO {
	
	private RubroRepository repository = new RubroRepository();
	
	public Rubro getById(int IdRubro){
		try{
			return repository.getById(IdRubro);
		}catch (Exception e){
			return null;
		}
	}
	
	public List<Rubro> getAll() {
		return repository.getAll();
	}
}
